<%@ page import="com.cn.domain.User" %><%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2025/11/3
  Time: 10:06
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%
  String username = request.getParameter("username");
  String password = request.getParameter("password");
  User user = new User(username, password);
//  user.getUsername().equals("admin");
//  user.getPassword().equals("123456");
  if (user.getUsername().equals("admin") && user.getPassword().equals("123456")) {
    out.print("<h1>登录成功</h1>");
  }else {
    out.print("<h1>登录失败</h1>");
  }
%>
<br>
<a href="index.jsp">返回登录页面</a>
</body>
</html>
